<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://java.sun.com/jsf/core">
    <div class="ui-fluid">
        <div class="ui-g">
            <div class="ui-g-12">
                <div class="card ui-g-12">
                    <h3>角标信息</h3>
                    <p:panelGrid columns="4" layout="grid"
                                 columnClasses="ui-grid-col-1,ui-grid-col-5,ui-grid-col-1,ui-grid-col-5"
                                 styleClass="ui-panelgrid-blank"
                                 style="border:0px none; background-color:transparent;text-align:left;">
                        <p:outputLabel value="角标显示"/>
                        <p:selectOneMenu disabled="#{loanApplicationExportInfoBean.isView()}"
                                         value="#{loanApplicationExportInfoBean.$.badge.state}" filter="true"
                                         filterMatchMode="contains">
                            <f:selectItems
                                    value="#{loanApplicationExportInfoBean.dictionaries[DictionaryCode.EXPORT_BADGE_STATUS]}"
                                    var="dic"
                                    itemLabel="#{dic.name}" itemValue="#{dic.value1}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="角标文本"/>
                        <p:inputText disabled="#{loanApplicationExportInfoBean.isView()}"
                                     value="#{loanApplicationExportInfoBean.$.badge.text}"/>

                        <p:outputLabel value="角标点击"/>
                        <p:selectOneMenu disabled="#{loanApplicationExportInfoBean.isView()}"
                                         value="#{loanApplicationExportInfoBean.$.badge.resident}" filter="true"
                                         filterMatchMode="contains">
                            <f:selectItem itemLabel="- 请选择 - " noSelectionOption="true"/>
                            <f:selectItems
                                    value="#{loanApplicationExportInfoBean.dictionaries[DictionaryCode.EXPORT_BADGE_RESIDENT]}"
                                    var="dic"
                                    itemLabel="#{dic.name}" itemValue="#{dic.value1}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                </div>
            </div>
            <div class="ui-g-12">
                <div class="card ui-g-12">
                    <h3>替补信息</h3>
                    <p:panelGrid columns="4" layout="grid"
                                 columnClasses="ui-grid-col-1,ui-grid-col-5,ui-grid-col-1,ui-grid-col-5"
                                 styleClass="ui-panelgrid-blank"
                                 style="border:0px none; background-color:transparent;text-align:left;">
                        <p:outputLabel value="替换条件"/>
                        <p:selectOneMenu disabled="#{loanApplicationExportInfoBean.isView()}"
                                         value="#{loanApplicationExportInfoBean.$.exportReplaceCondition.condition}"
                                         filter="true"
                                         filterMatchMode="contains">
                            <f:selectItem itemLabel="- 请选择 - " noSelectionOption="true"/>
                            <f:selectItems
                                    value="#{loanApplicationExportInfoBean.dictionaries[DictionaryCode.EXPORT_REPLACE_CONDITION]}"
                                    var="dic"
                                    itemLabel="#{dic.name}" itemValue="#{dic.value1}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="替补主键"/>
                        <p:selectOneMenu disabled="#{loanApplicationExportInfoBean.isView()}" id="replacePanel"
                                         value="#{loanApplicationExportInfoBean.$.exportReplaceCondition.exportId}"
                                         filter="true"
                                         filterMatchMode="contains">
                            <f:selectItem itemLabel="- 请选择 - " noSelectionOption="true"/>
                            <f:selectItems
                                    value="#{loanApplicationExportInfoBean.replaceExportList}"
                                    var="export"
                                    itemLabel="#{export.name}" itemValue="#{export.id}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                </div>
            </div>
        </div>
    </div>
</ui:composition>